﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace NetBay.Core.DataAccess
{
    public class StoredProcedureResultCollection : List<StoredProcedureResult>
    {

        /// <summary>
        /// Gets a value indicating whether this instance has errors.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance has errors; otherwise, <c>false</c>.
        /// </value>
        public bool HasErrors
        {
            get
            {
                return this.Any(storedProcedureResult => storedProcedureResult.HasError);
            }
        }



    }

}
